package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 章节知识点Dto类
 * Created by chenxin on 2014/12/16.
 */
public class ChapterKpDto {
    private Long id; //ID
    @NotBlank
    @Length(min = 1, max = 60, message = "知识点名称长度为1~60")
    private String name; //名称
    @NotNull
    @Min(value = 1, message = "课程ID不合法")
    private Long classId; //课程ID
    @NotNull
    @Min(value = 1, message = "节点ID不合法")
    private Long nodeId; //节点ID

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public Long getNodeId() {
        return nodeId;
    }

    public void setNodeId(Long nodeId) {
        this.nodeId = nodeId;
    }
}
